package com.cl.eb.service;

import com.cl.eb.mapper.EbProductMapper;
import com.cl.eb.model.EbProduct;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProductService {
    @Resource
    private EbProductMapper ebProductMapper;
    public EbProduct detail(int pid){
        EbProduct ebProduct = ebProductMapper.selectById(pid);
        return ebProduct;
    }
}
